﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Home_KhuyenMai : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!Page.IsPostBack)
        {
            CommonDAO cm = new CommonDAO();
            rptKhuyenMai.DataSource =
                cm.queryForTable("select top 10 chietkhau,id,picurl,GiaBanThamKhao,tenHang,GiaBanCoChietKhau,conHang from sanpham where chietkhau>0 and conHang=1", "t");
            rptKhuyenMai.DataBind();
        }
    }

}
